<!doctype html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国银联</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="encrypt.js"></script>
<style>
	body{
		background:#f1f1f1;
	}
	.box{
		padding-top: 52px;
	}
		
</style>
</head>
<body >
	<div class="wrapper">
		<div  class="top">
			订单支付
			<img src="image/ylzx.png"/>
		</div>
		<ul class="list l-list">
			<li> <label>订单金额：</label><span id="transAmt"></span></li>
			<li id="name"> <label>订单描述：</label><span id="subject"></span></li>
		</ul>
		<ul class="list m-list">
			<li> 
				<label>银联卡号：</label>
				<input id="acctNo"  type="number" value="" class="input" placeholder="仅支持信用卡">
			</li>
		</ul>
	    <a class="btn btn-blue" style="display: none;">下一步</a>
    </div>
</body>
<script>
	var param = getUrl();
	if(param.partnerCode != null && param.secret != null && param.memberNo != null ){
		if(param.transAmt != null && param.subject != null && param.bizcode != null){
			$("#transAmt").html(param.transAmt/100+"元");
			$("#subject").html(param.subject);
			$(".btn").css("display", "block");
			$(".btn").click(function(){
				console.info($("input").val());
				var paramUrl = "partnerCode="+param.partnerCode+"&secret="+param.secret+"&memberNo="+param.memberNo+"&bizcode="+param.bizcode+"&transAmt="+param.transAmt+"&subject="+param.subject+"&acctNo="+$("#acctNo").val();
				window.location.href="nocard2.html?"+Base64.encode(paramUrl);
			});
		}else{
			alert("未知的交易金额描述及业务代码！");
		}
	}else{
		alert("未知的组织机构号！");
	}
</script>
</html>